package com.neno.repository;

import com.neno.entity.Name;
import com.neno.entity.People;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @Author: root
 * @Date: 2018/11/12 10:55
 */
public interface PeopleRepository extends JpaRepository<People, Name> {
    /**
     * @return
     */
    @Query("select p from People p")
    List<People> getAllPeople();
}
